package com.xiang.sql.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户分组 数据实体
 * 
 * @author mac-xiang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`group`", autoResultMap = true)
@ApiModel(value = "用户分组 对象", description = "用户分组")
public class Group implements Serializable {

  private static final long serialVersionUID = 1L;
  /** 主键ID */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  public String id;

  /** 创建时间 */
  @TableField(value = "`create_time`", fill = FieldFill.INSERT)
  public Long createTime;

  /** 上级id */
  @TableField(value = "`pid`", fill = FieldFill.INSERT)
  public String pid;

  /** 隶属用户 */
  @TableField(value = "`create`", fill = FieldFill.INSERT)
  public String create;

  /** 提成百分比 */
  @TableField(value = "`commission`", fill = FieldFill.INSERT)
  public Integer commission;

  /** 业务员id */
  @TableField(value = "`sid`", fill = FieldFill.INSERT)
  public String sid;

  /** 业务员提成百分比 */
  @TableField(value = "`salesman`", fill = FieldFill.INSERT)
  public Integer salesman;

  /** 状态 */
  @TableField(value = "`state`")
  public Integer state;

  /** 拥有权限 */
  @TableField(value = "`permission`")
  public byte[] permission;

  /** 名称 */
  @TableField(value = "`name`", fill = FieldFill.INSERT)
  public String name;

  /** 设置 */
  @TableField(value = "`other`", fill = FieldFill.INSERT)
  public String other;

  public Group() {
  }
}